import requset from '@/utils/requset';

export const getChannelService = () => requset.get('/my/cate/list')

export const addChannelService = (data) => {
  return requset.post('/my/cate/add', data)
}

export const editChannelService = (data) => requset.put('/my/cate/info', data)

export const delCannelService = (id) => requset.delete('/my/cate/del', {
  params: {
    id
  }
})
export const atrlistService = (params) => { return requset.get('/my/article/list', { params }) }

export const artAddService = (data) => requset.post('/my/article/add', data)


export const artgetDetailService = (id) => {
  return requset.get('/my/article/info', {
    params: { id }
  })
}
export const artupdateService = (data) => requset.put('/my/article/info', data)

